package com.ele.client.editor;

import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.ControlLabel;
import com.github.gwtbootstrap.client.ui.TextArea;
import com.google.gwt.core.shared.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class AnswerView extends Composite implements AnswerPresenter.Display {

    interface DefaultUiBinder extends UiBinder<Widget, AnswerView> {}
    private static DefaultUiBinder uiBinder = GWT.create(DefaultUiBinder.class);

    @UiField
    ControlLabel label;
    @UiField
    TextArea textArea;
    @UiField
    Button deleteButton;

    public AnswerView() {
        initWidget(uiBinder.createAndBindUi(this));
    }

    @Override
    public ControlLabel getLabel() {
        return label;
    }

    @Override
    public TextArea getTextArea() {
        return textArea;
    }

    @Override
    public Button getDeleteButton() {
        return deleteButton;
    }
}
